package com.shop.cereshop.business.dao.dl;

import com.shop.cereshop.business.dl.logic.domian.CareShopNewsColumn;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface CareShopNewsColumnDAO {
    int deleteByPrimaryKey(Long newsColumnId);

    int insert(CareShopNewsColumn record);

    int insertSelective(CareShopNewsColumn record);

    CareShopNewsColumn selectByPrimaryKey(Long newsColumnId);

    int updateByPrimaryKeySelective(CareShopNewsColumn record);

    int updateByPrimaryKey(CareShopNewsColumn record);

    List<CareShopNewsColumn> getNewsList(@Param("columnId") Long columnId);

    void update(@Param("columnId") Long columnId, @Param("newsId") Long newsId);

    int getAllcount(Long columnId);

    Long selBynewsId(Long newsId);
    String getByuid(Long buyerUserId);
}